package com.hdoit.ares.logical.ser.dao;

import java.util.List;

import com.hdoit.ares.logical.ser.model.GoodsService;
import com.hdoit.ares.logical.viewmodel.ser.GoodsServiceSearch;
import com.tennetcn.common.dao.base.ISuperDao;
import com.tennetcn.common.message.PagerModel;
/**
 * @author      lvsi
 * @email       
 * @createtime  2017年11月22日 14:22:45
 * @comment
 */
public interface IGoodsServiceDao extends ISuperDao<GoodsService>{

	//所有店铺中的所有商品
    public int queryGoodsServiceCount(GoodsServiceSearch goodsServiceSearch);
	
	public List<GoodsService> queryGoodsServiceList(GoodsServiceSearch goodsServiceSearch,PagerModel pagerModel);
	
	public GoodsService queryGoodsServiceModel(String key);
	
	public List<GoodsService> queryFirstGoods(String serviceTypeName,String  serviceName,String deleteMark);
	//目前排序最大编号
	public Integer queryMaxGoodsSortCode();
	
	//店铺主人查看的商品界面-----------------------------------------
    public int queryGoodsServiceCountById(GoodsServiceSearch goodsServiceSearch,String loginId);
	
	public List<GoodsService> queryGoodsServiceListById(GoodsServiceSearch goodsServiceSearch,PagerModel pagerModel,String loginId);

	//店铺员工查看的商品界面-----------------------------------------------------------
	public int queryStoreGoodsCountById(GoodsServiceSearch goodsServiceSearch,String loginId);
		
	public List<GoodsService> queryStoreGoodsById(GoodsServiceSearch goodsServiceSearch,PagerModel pagerModel,String loginId);
	
	//微信端查看商品详情
	public GoodsService queryModelById(String id);

    public int updateLargePicById(String id);
	
	public int updateSmallPicById(String id);
}
